package com.mdxq.smp.test01.controller;


import com.mdxq.smp.test01.entity.Menu;
import com.mdxq.smp.test01.service.MenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title MenuController
 * @description
 * @create 2024/12/31
 */
@RestController
public class MenuController {
    @Resource

    private MenuService menuService;

    @GetMapping("/menu/queryAll")
    public List<Menu> queryAll(){
        return menuService.list();
    }
}
